package com.vincce.sport.entity;

import java.text.SimpleDateFormat;
import java.util.Date;

import com.vincce.sport.core.utils.ConvertUtil;

/**
 * 帖子
 * @author ex-yanjun
 *
 */
public class DzForumPost {
	private Integer tid;
	private String subject;
	private Integer dateline;
	public Integer getTid() {
		return tid;
	}
	public void setTid(Integer tid) {
		this.tid = tid;
	}
	public String getSubject() {
		return subject;
	}
	public void setSubject(String subject) {
		this.subject = subject;
	}
	public String getDateline() {
		SimpleDateFormat sdf = new SimpleDateFormat("MM.dd");
		String date = sdf.format(new Date(dateline*1000L));
		return date;
	}
	public void setDateline(Integer dateline) {
		this.dateline = dateline;
	}
	public static void main(String[] args) {
//		Date date=new Date(1413598801);
//		String strs="";
//		try {
//		SimpleDateFormat sdf=new SimpleDateFormat("yyyy-MM-dd hh:mm:ss");
//		strs=sdf.format(date);
//		} catch (Exception e) {
//		e.printStackTrace();
//		}
		SimpleDateFormat sdf = new SimpleDateFormat("MM.dd");
		String date = sdf.format(new Date(1409027765*1000L));
		System.out.print(date);
	}
	
}
